
public class Study19 {

	public static void main(String[] args) {
		int num=0;
		for(int i=1;i<=100;i++) {
			num+=i;
		}
		System.out.println("1~100的和为："+num);
	}

}
